﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _9._3
{
    class MyClass
    {
        public int val;
    }

    struct MyStruct
    {
        public int val;
    }
    internal class Program
    {
        static void Main(string[] args)
        {
            MyClass m1 = new MyClass();
            MyClass m2 = m1;
            m1.val= 1;
            m2.val= 2;

            MyStruct s1 = new MyStruct();
            MyStruct s2 = s1;
            s1.val = 3;
            s2.val = 4;

            Console.WriteLine($"m1={m1.val},m2={m2.val},s1={s1.val},s2={s2.val}");
            Console.ReadLine();
        }
    }
}
